<?php
 //header('Content-Type:text/html;charset=utf-8');
 
 class tools
 {
	public static function reCode($code)
	{
		switch($code[0])
		{
			case "6":return "sh"."$code";
			case "0":return "sz"."$code";
			case "3":return "sz"."$code";
			default:return "-1";
		}
	}
	
	public static function deCode($code)
	{
		switch($code[1])
		{
			case "h":return substr($code,2);
			case "z":return substr($code,2);
			default:return "-1";
		}
	}
 }
 ?>